@import (inline) "base.css";
@import (reference) "header";
//头部
.header{
  .header();
}
//主体
.main{
  overflow: hidden;
  padding-top: 60px;
}
.book-fiction{
  padding-top: 0.1rem;
  width: 100%;
  height: auto;
  .book-title{
    padding: 0 0.17rem;
    display: flex;
    justify-content: space-between;
    h2{
      font-weight: normal;
    }
    a{
      color: #42BD56;
    }
  }
  .book-list{
    width: 100%;
    padding: 0.15rem 0;
    ul{
      width: 100%;
      height: auto;
      overflow-x: scroll;
      -webkit-overflow-scrolling: touch;
      display: flex;
      padding-left: 0.17rem;
    }
    li{
      width: 1.08rem;
      flex-shrink: 0;
      -webkit-background-clip: content-box;
      padding-right: 0.08rem;
      a{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        .book-img{
          width: 100%;
          height: 1.47rem;
          img{
            width: 100%;
            height: 100%;
            border-radius: 0.05rem;
          }
        }
        p{
          width: 100%;
        }
        .score-stars{
          display: flex;
          margin-top: 0.05rem;
          line-height: 0.16rem;
          .stars{
            display: flex;
            align-items: center;
            span{
              width: 0.1rem;
              height: 0.1rem;
              margin-right: 0.02rem;
            }
          }
          .score{
            font-size: 0.12rem;
            color: #818181;
            margin-left: 0.04rem;
          }
        }
      }
    }
  }
}
//豆瓣书店
.book-market{
  width: 100%;
  .market-header{
    width: 100%;
    .market-title{
      padding: 0 0.17rem;
      display: flex;
      justify-content: space-between;
      h2{
        font-weight: normal;
      }
      a{
        color: #42BD56;
      }
    }
    .ad{
      margin: 0.15rem 0.17rem 0 0.17rem;
      display: flex;
      img{
        width: 1rem;
        margin-right: 0.15rem;
      }
      .content{
        p{
          color: #9B9B9B;
          font-size: 0.13rem;
        }
      }
      .title{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0.1rem 0;
        h3{
          font-size: 0.19rem;
          font-weight: normal;
          color: #494949;
        }
        span{
          color: #E76648;
        }
      }
    }
  }
  .market-list{
    width: 100%;
    ul{
      width: 100%;
      height: auto;
      overflow-x: scroll;
      -webkit-overflow-scrolling: touch;
      display: flex;
      padding: 0.15rem 0 0.2rem 0.17rem;
    }
    li{
      width: 1.08rem;
      flex-shrink: 0;
      -webkit-background-clip: content-box;
      padding-right: 0.08rem;
      a{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        .market-img{
          width: 100%;
          img{
            width: 100%;
          }
        }
        p{
          width: 100%;
          font-size: 0.14rem;
          color: #111111;
        }
        span{
          font-size: 0.1rem;
          color: #818181;
        }
      }
    }
  }
}
//发现好图书
.book-find{
  .find-list{
    width: 100%;
    padding: 0.15rem 0.15rem 0.3rem 0.15rem;
    div{
      width: 100%;
      height: auto;
      flex-wrap: wrap;
      overflow-x: scroll;
      -webkit-overflow-scrolling: touch;
    }
    ul{
      width: 191%;
      display: flex;
      flex-wrap: wrap;
    }
    li{
      flex-shrink: 0;
      margin: 0 0.08rem 0.08rem 0;
      a{
        display: inline-block;
        width: 100%;
        height: 100%;
        padding: 0.17rem 0.25rem;
        border-width: 1px;
        border-style: solid;
        border-radius: 0.05rem;
      }
    }
  }
}
.book-header{
  padding: 0 0.18rem;
  h2{
    font-size: 0.17rem;
    font-weight: normal;
  }
}
//分类
.book-cate{
  width: 100%;
  .cate-list{
    width: 100%;
    padding: 0.18rem 0;
    ul{
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      position: relative;
      overflow: hidden;
      &:after{
        content: '';
        width: 200%;
        height: 1px;
        border-bottom: 1px solid #ccc;
        position: absolute;
        bottom: 0;
        left: -169px;
        transform: scaleX(0.5);
      }
    }
    li{
      width: 50%;
      height: 0.4rem;
      line-height: 0.4rem;
      a{
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #42BD56;
        padding: 0 0.16rem 0 0.18rem;
        position: relative;
        &:after{
          content: '';
          width: 200%;
          height: 1px;
          border-top: 1px solid #ccc;
          position: absolute;
          top: 0;
          left: -76px;
          transform: scaleX(0.5);
        }
        &:before{
          content: '';
          width: 1px;
          height: 200%;
          border-right: 1px solid #ccc;
          position: absolute;
          top: -19px;
          right: -1px;
          transform: scaleY(0.5);
        }
      }
      span{
        width: 0.08rem;
        height: 0.08rem;
        border-top: 1px solid #ccc;
        border-right: 1px solid #ccc;
        transform: rotate(45deg);
      }
    }
  }
}
//尾部
.footer{
  width: 100%;
  height: 0.87rem;
  margin: 0.5rem 0 0.3rem;
  text-align: center;
  .footer-header{
    width: 100%;
    height: 0.48rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.12rem;
    img{
      width: 0.48rem;
      margin-right: 0.12rem;
    }
    strong{
      font-size: 0.24rem;
      font-weight: normal;
    }
  }
  a{
    color: #42BD56;
    font-size: 0.16rem;
    text-align: center;
  }
}